<?php
require_once('declarations.php');

if($_REQUEST['error'] == "postdoesnotexist"){
	$smarty->assign("error_header", "Post does not exist");
	$smarty->assign("error_message", "The post you are trying to access does not exist!");
}
if($_REQUEST['error'] == "authorization"){
	$smarty->assign("error_header", "Authorization Error");
	$smarty->assign("error_message", "You are not authorized to view this page, please <a href='admin.php'>Login</a>");
}
if($_REQUEST['error'] == "credentials"){
	$smarty->assign("error_header", "Incorrect Login Details");
	$smarty->assign("error_message", "You have entered invalid login details, please <a href='admincp.php'>try again</a>.");
}

$smarty->display('error.tpl');

?>